<!--@Knockout-->
<div data-bind="dxButton:{ text: 'Subscribe to SelectionChanged event', onClick: clickHandler }"></div></br>
<div class="dx-fieldset">
    <div class="dx-field">
        <div class="dx-field-label">selectedIndex</div>
        <div class="dx-field-value" data-bind="dxNumberBox: {
            min: 0,
            max: 3,
            showSpinButtons: true,
            value: currentIndex
        }"></div>
    </div>
</div>
<div data-bind="dxPivot: { dataSource: pivotData, selectedIndex: currentIndex, onInitialized: initializedHandler }">
    <div data-options="dxTemplate : { name: 'item' } ">
        <div data-bind="dxList: { dataSource: listData }">
            <div data-options="dxTemplate : { name: 'item' } ">
                <div data-bind="text: name"></div>
                <div data-bind="text: phone"></div>
                <div data-bind="text: email"></div>
            </div>
        </div>
    </div>
</div>
<!--/@Knockout-->
<!--@AngularJS-->
<div ng-controller="demoController" style="height: 100%;">
    <div dx-button="{ text: 'Subscribe for SelectionChanged event' ,onClick: clickHandler }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">selectedIndex</div>
            <div class="dx-field-value" ng-model="currentIndex" dx-number-box="{
                min: 0,
                max: 3,
                showSpinButtons: true
            }"></div>
        </div>
    </div>
    <div dx-pivot="{
        dataSource: pivotData,
        onInitialized: initializedHandler,
        bindingOptions: {
            selectedIndex: 'currentIndex'
        }
    }" dx-item-alias="group">
        <div data-options="dxTemplate : { name: 'item' } ">
            <div dx-list="{ dataSource: group.listData }" dx-item-alias="contact">
                <div data-options="dxTemplate : { name: 'item' } ">
                    <div>{{contact.name}}</div>
                    <div>{{contact.phone}}</div>
                    <div>{{contact.email}}</div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--/@AngularJS-->
<!--@jQuery-->
<div id="myButton"></div>
<div class="dx-fieldset">
    <div class="dx-field">
        <div class="dx-field-label">selectedIndex</div>
        <div class="dx-field-value" id="indexSelector"></div>
    </div>
</div>
<div id="myPivot"></div>
<!--/@jQuery-->